package com.ruge.core.enums;


import com.ruge.core.domain.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * description: 脱敏
 * create time at 2022/6/9 16:46
 *
 * @author alice.ruge
 * @since 0.0.3
 */
@Getter
@AllArgsConstructor
public enum PrivacyTypeEnum implements BaseEnum {

    /**
     * 隐私数据类型枚举
     */

    CUSTOMER("CUSTOMER", "自定义（此项需设置脱敏的范围）"),
    NAME("NAME", "姓名"),
    ID_CARD("ID_CARD", "身份证号"),
    PHONE("PHONE", "手机号"),
    EMAIL("EMAIL", "邮箱"),
    ;
    private String code;
    private String desc;

    @Override
    public String toString() {
        return code + ":" + desc;
    }
}
